/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bookshop.service;

import com.bookshop.dao.IDaoCustomerLocal;
import com.bookshop.dao.IDaoCustomerOrder;
import com.bookshop.dao.IDaoCustomerOrderLocal;
import java.io.Serializable;
import javax.ejb.EJB;
import javax.ejb.Singleton;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;

/**
 *
 * @author Samir
 */
@Singleton(mappedName = "com.bookshop.service.Customerorder")
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class CustomerOrderService implements Serializable{
    
    @EJB
    private IDaoCustomerOrder daoCustomerOrder;
    
    public double getTotal(){
        return daoCustomerOrder.getTotal();
    } 
}
